<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<div class="module-container link-block" (click)="gotoLicense()">
  <div class="aui-header-1">
    <lv-group lvGutter="8px">
      <h2 class="home-module-title">
        {{ 'common_license_capacity_label' | i18n }}
      </h2>
    </lv-group>
  </div>
  <div class="license-margin" *ngFor="let item of licenses">
    <lv-group lvGutter="24px" class="license-group">
      <div class="license-capacity"></div>
      <lv-group lvDirection="vertical" lvGutter="2px">
        <span>
        {{'system_available_capacity_label' | i18n}}
      </span>
        <span>
        {{item.totalCapacity | capacityCalculateLabel: '1.1-3':unitconst.BYTE:true:true}}
      </span>
      </lv-group>
    </lv-group>
  </div>
</div>
